package com.lifeng.start.service;

import com.lifeng.start.properties.HelloServiceProperteis;

/**
 * Created by lifeng on 2019/2/25.
 * 用来对外提供服务
 */
public class HelloService {
    private HelloServiceProperteis helloServiceProperteis;

    public HelloService() {
    }

    public HelloService(HelloServiceProperteis helloServiceProperteis) {
        this.helloServiceProperteis = helloServiceProperteis;
    }

    public String sayHello(){
        return "id:"+helloServiceProperteis.getId()+ ",name:" + helloServiceProperteis.getName() +",age:"+helloServiceProperteis.getAge()+ ",say Hello";
    }
}
